//
//  VC06.swift
//  APPTestSwift
//
//  Created by hiking on 2020/2/28.
//  Copyright © 2020 hiking. All rights reserved.
//

import UIKit

class VC06: UIViewController {

    lazy var chartView:MyChartView = {
        let chart = MyChartView.init(frame: CGRect.init(x: 100, y: 100, width: 100, height: 100))
        return chart
    }()
    lazy var tapGesture:UITapGestureRecognizer = {
        let tap = UITapGestureRecognizer.init(target: self, action: #selector(tapView))
        return tap
    }()
    
    @objc func tapView() {
        print("hello")
//        self.chartView.center = CGPoint.init(x: 100, y: 200)
        self.chartView.frame = CGRect.init(x: 200, y: 200,width: 50 ,height: 50)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.addSubview(self.chartView)
        
//        self.chartView.addGestureRecognizer(self.tapGesture)
    }
    
    
}
